package com.wx.cloud.word.service;

import com.wx.cloud.word.common.CommonResult;
import com.wx.cloud.word.model.Collect;
import com.wx.cloud.word.model.Like;
import com.wx.cloud.word.model.Word;
import java.util.List;
import java.util.Map;

public interface WordService {
    List<Word> getSelectList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    String addWord(Word word);

    int delWord(Word word);

    Like getLikeByData(Map<String, Object> data);

    String addLike(Like like);

    int updateLike(Like like);

    Collect getCollectByData(Map<String, Object> data);

    String addCollect(Collect collect);

    int updateCollect(Collect collect);

    CommonResult createDeletion(List<Integer> ids) throws Exception;

    List<Word> getMyWordList(Map<String, Object> data);

    int getMyWordCount(Map<String, Object> data);

    List<Collect> getCollectList(Map<String, Object> data);

    int getCollectCount(Map<String, Object> data);
}
